﻿using System.Collections.Generic;
using Shuba.Model;

namespace Shuba.Business
{
    public class ClusterTarget
    {
        private Data.ClusterTarget ClusterTargetData;

        public ClusterTarget()
        {
            ClusterTargetData = new Data.ClusterTarget();
        }

        public List<ClusterTargetInfo> GetList(string RegionalID, string TargetYear, string CostCenter)
        {
            return ClusterTargetData.GetList(RegionalID, TargetYear, CostCenter);
        }

        public List<ClusterTargetInfo> GetListApproval(string TargetYear, string UpdateBy, string CostCenter)
        {
            return ClusterTargetData.GetListApproval(TargetYear, UpdateBy.TrimEnd(), CostCenter);
        }

        public ClusterTargetInfo Get(string id, string TargetYear)
        {
            return ClusterTargetData.Get(id, TargetYear);
        }

        public ClusterTargetInfo GetClusterTarget(string id, string TargetYear)
        {
            return ClusterTargetData.GetClusterTarget(id, TargetYear);
        }

        public ClusterTargetInfo GetClusterTargetTotal(string cluster_id, string branch_id, string TargetYear)
        {
            return ClusterTargetData.GetClusterTargetTotal(cluster_id, branch_id, TargetYear);
        }

        public int Save(ClusterTargetInfo ClusterTargetInf)
        {
            return ClusterTargetData.Save(ClusterTargetInf);
        }

        public int Approve(string ClusterID, string TargetYear, string ActType)
        {
            return ClusterTargetData.Approve(ClusterID, TargetYear, ActType);
        }

        public int Reject(string ClusterID, string TargetYear)
        {
            return ClusterTargetData.Reject(ClusterID, TargetYear);
        }
        public ClusterTargetInfo GetApprovalByID(string ClusterID, string TargetYear)
        {
            return ClusterTargetData.GetApprovalByID(ClusterID, TargetYear);
        }

        public bool IsDependency(string ClusterID, string TargetYear)
        {
            return ClusterTargetData.IsDependency(ClusterID, TargetYear);
        }
    }
}
